<?php
$data['view'] = "";
$this->load->view('correction/header',$data);
?>

<div style="text-align:center;font-size:20px;border:solid 2px darkgray;background-color:lightgray;width:500px;height:150px;margin:auto;margin-top:50px;line-height:50px;padding-top:55px;">
	<?php echo $msg;?>
	<p>Auto redirect  in <span id="time"><?php echo $timer?></span> seconds.</p>
</div>
<script type="text/javascript">
var timer = <?php echo $timer?>;
count();
function count( )
{　
	if(timer > 0){
		timer--;
		document.getElementById("time").innerHTML = timer;
	　    setTimeout("count( )", 1000);
	}else{
		window.location.href = '<?php echo $redirect?>';
	}
}
</script>

<?php
$this->load->view('correction/footer');
?>